package ar.com.geoDelivery.front;

import java.io.Serializable;
import java.util.ArrayList;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import org.primefaces.model.DefaultTreeNode;
import org.primefaces.model.TreeNode;

@ManagedBean (name="bbRegistrarCarta")
@ViewScoped
public class BBRegistrarCarta implements Serializable {

	private static final long serialVersionUID = 5891174304535534443L;

	private TreeNode root;
	
	private ArrayList<Items> listaBebidas;
	

	@SuppressWarnings("unused")
	public BBRegistrarCarta() {
		listaBebidas = new ArrayList<>();
		
		listaBebidas.add(new Items("Quilmes Cristal x 970 ml", 13));
		listaBebidas.add(new Items("Brahama x 970 ml", 14));
		listaBebidas.add(new Items("Corona x 970 ml", 17));
		
		
		
		root = new DefaultTreeNode("Root", null);
		TreeNode node0 = new DefaultTreeNode("Cerveza rubia", root);
		TreeNode node1 = new DefaultTreeNode("Cerveza negra", root);
		TreeNode node2 = new DefaultTreeNode("Cerveza roja", root);
		
		TreeNode node00 = new DefaultTreeNode("Quilmes  13$", node0);
		TreeNode node01 = new DefaultTreeNode("Brahma  14$", node0);
		TreeNode node02 = new DefaultTreeNode("Corona  17$", node0);
		TreeNode node03 = new DefaultTreeNode("AGREGAR NUEVO *", node0);
	}

	public TreeNode getRoot() {
		return root;
	}

	public ArrayList<Items> getListaBebidas() {
		return listaBebidas;
	}

	public void setListaBebidas(ArrayList<Items> listaBebidas) {
		this.listaBebidas = listaBebidas;
	}

	
}
